<?php

class Custom_Mongo_Collection extends MongoCollection
{
    public function __construct ( $name, $db = null ){
       
        if($db == null) $db = Zend_Registry::get('mongoDB');
        parent::__construct ( $db , $name );
    }

    public function insert( array $a, $options = array())
    {
        $a['created'] = date('Y-m-d H:M:S');
        parent::insert( $a, $options);
    }
}
